<?php
/**
 * ExtHtmlEditor class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtHtmlEditor extends ExtHtmlEditorBase
{
    /**
     * Gets the value of ExtJS createLinkText property
     * @return String 
     */
    public function getCreateLinkText()
    {
    	return $this->getConfig("createlinktext");
    }

    /**
     * Sets the value of ExtJS createLinkText property
     * @param String $value 
     */
    public function setCreateLinkText($value)
    {
    	$this->setConfig("createlinktext",$value);
    }

    /**
     * Gets the value of ExtJS defaultLinkValue property
     * @return String 
     */
    public function getDefaultLinkValue()
    {
    	return $this->getConfig("defaultlinkvalue");
    }

    /**
     * Sets the value of ExtJS defaultLinkValue property
     * @param String $value 
     */
    public function setDefaultLinkValue($value)
    {
    	$this->setConfig("defaultlinkvalue",$value);
    }

    /**
     * Gets the value of ExtJS defaultValue property
     * @return String 
     */
    public function getDefaultValue()
    {
    	return $this->getConfig("defaultvalue");
    }

    /**
     * Sets the value of ExtJS defaultValue property
     * @param String $value 
     */
    public function setDefaultValue($value)
    {
    	$this->setConfig("defaultvalue",$value);
    }

    /**
     * Gets the value of ExtJS enableAlignments property
     * @return Boolean 
     */
    public function getEnableAlignments()
    {
    	return $this->getConfig("enablealignments");
    }

    /**
     * Sets the value of ExtJS enableAlignments property
     * @param Boolean $value 
     */
    public function setEnableAlignments($value)
    {
    	$this->setConfig("enablealignments",$value);
    }

    /**
     * Gets the value of ExtJS enableColors property
     * @return Boolean 
     */
    public function getEnableColors()
    {
    	return $this->getConfig("enablecolors");
    }

    /**
     * Sets the value of ExtJS enableColors property
     * @param Boolean $value 
     */
    public function setEnableColors($value)
    {
    	$this->setConfig("enablecolors",$value);
    }

    /**
     * Gets the value of ExtJS enableFont property
     * @return Boolean 
     */
    public function getEnableFont()
    {
    	return $this->getConfig("enablefont");
    }

    /**
     * Sets the value of ExtJS enableFont property
     * @param Boolean $value 
     */
    public function setEnableFont($value)
    {
    	$this->setConfig("enablefont",$value);
    }

    /**
     * Gets the value of ExtJS enableFontSize property
     * @return Boolean 
     */
    public function getEnableFontSize()
    {
    	return $this->getConfig("enablefontsize");
    }

    /**
     * Sets the value of ExtJS enableFontSize property
     * @param Boolean $value 
     */
    public function setEnableFontSize($value)
    {
    	$this->setConfig("enablefontsize",$value);
    }

    /**
     * Gets the value of ExtJS enableFormat property
     * @return Boolean 
     */
    public function getEnableFormat()
    {
    	return $this->getConfig("enableformat");
    }

    /**
     * Sets the value of ExtJS enableFormat property
     * @param Boolean $value 
     */
    public function setEnableFormat($value)
    {
    	$this->setConfig("enableformat",$value);
    }

    /**
     * Gets the value of ExtJS enableLinks property
     * @return Boolean 
     */
    public function getEnableLinks()
    {
    	return $this->getConfig("enablelinks");
    }

    /**
     * Sets the value of ExtJS enableLinks property
     * @param Boolean $value 
     */
    public function setEnableLinks($value)
    {
    	$this->setConfig("enablelinks",$value);
    }

    /**
     * Gets the value of ExtJS enableLists property
     * @return Boolean 
     */
    public function getEnableLists()
    {
    	return $this->getConfig("enablelists");
    }

    /**
     * Sets the value of ExtJS enableLists property
     * @param Boolean $value 
     */
    public function setEnableLists($value)
    {
    	$this->setConfig("enablelists",$value);
    }

    /**
     * Gets the value of ExtJS enableSourceEdit property
     * @return Boolean 
     */
    public function getEnableSourceEdit()
    {
    	return $this->getConfig("enablesourceedit");
    }

    /**
     * Sets the value of ExtJS enableSourceEdit property
     * @param Boolean $value 
     */
    public function setEnableSourceEdit($value)
    {
    	$this->setConfig("enablesourceedit",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'createlinktext' => 'createLinkText',
            'defaultlinkvalue' => 'defaultLinkValue',
            'defaultvalue' => 'defaultValue',
            'enablealignments' => 'enableAlignments',
            'enablecolors' => 'enableColors',
            'enablefont' => 'enableFont',
            'enablefontsize' => 'enableFontSize',
            'enableformat' => 'enableFormat',
            'enablelinks' => 'enableLinks',
            'enablelists' => 'enableLists',
            'enablesourceedit' => 'enableSourceEdit'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'activate' => array('sender'),
            'beforepush' => array('sender','html'),
            'beforesync' => array('sender','html'),
            'editmodechange' => array('sender','sourceEdit'),
            'initialize' => array('sender'),
            'push' => array('sender','html'),
            'sync' => array('sender','html')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'html' => true
        ));
        $this->setXType('htmleditor');
        $this->setXClass('Ext.form.HtmlEditor');
    }    
}
?>